<?phpsession_start();require_once('models/Auth.class.php');	require_once("configs/db_connect.php");require_once("models/SocNet.class.php");require_once('configs/common.php');$link_id=safe_var($_GET['id']);if (!Auth::isCheckSuccess()){	  try 	{							 $template = $twig->loadTemplate('external_video_view_no_auth.html');			 		 $data=Translate::getPageKeys(KEYS_FILE."my_account.ini"); 		 $data['videos']=SocNet::getSharedVideos($link_id);			 		 echo $template->render($data);		  	} 	catch (Exception $e) 	{		 die ('ERROR: ' . $e->getMessage());	}}else{	  try 	{							 $template = $twig->loadTemplate('external_video_view.html');			 		 $data=Translate::getPageKeys(KEYS_FILE."my_account.ini"); 		 $data['videos']=SocNet::getSharedVideos($link_id);			 		 echo $template->render($data);		  	} 	catch (Exception $e) 	{		 die ('ERROR: ' . $e->getMessage());	}}